
CROSS_COMPILE=/home/jjinl/gcc_set/arm-2013.05/bin/arm-none-linux-gnueabi-
APP_NAME = test1
APP_SRC = test1.c


run:
	$(CROSS_COMPILE)gcc -o $(APP_NAME) $(APP_SRC) -static
	qemu-arm $(APP_NAME)

dis_bin:
	$(CROSS_COMPILE)gcc -o $(APP_NAME) $(APP_SRC) 
	$(CROSS_COMPILE)objcopy -O binary $(APP_NAME) $(APP_NAME).bin
	$(CROSS_COMPILE)objdump -m arm -b binary -D $(APP_NAME).bin

dis_elf:
	$(CROSS_COMPILE)gcc -o $(APP_NAME) $(APP_SRC) 
	$(CROSS_COMPILE)objdump -d $(APP_NAME)




